<div class="module members">
	<h3 class="gradient dark">
		<?php echo isset($link_action) ? $link_action : link_to('Create a Group', 'groups/edit') ?>
		Members (<?php echo isset($groupMembers) ? count($groupMembers) : 0 ?>)
	</h3>
	<div class="inner">
		<?php if(isset($groupMembers)): ?>
		<ul>
			<?php foreach($groupMembers as $member): ?>
			<li>
				<?php echo render_avatar($member->getUser(), 'thumb', array('class' => 'avatar'))?>
				<div class="info">
					<h4>
						<?php echo link_to($member->getUser()->getFullName(), 'user_profiles/show?id='.$member->getUser()->getId())?>
						<strong><?php echo GroupMemberPeer::$roleTypes[$member->getRole()] ?></strong>
					</h4>
					<p><?php echo ucfirst($member->getUser()->getStanding()) ?>, <?php echo UserPeer::$networks[$member->getUser()->getNetworkId()] ?></p>
				</div>
			</li>
			<?php endforeach ?>
		</ul>
		<?php endif ?>
	</div>
</div>